
<?php
/**
 *
 * PHP versions 4 and 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       cake
 * @subpackage    cake.cake.libs.view.templates.layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
?>
<!DOCTYPE html>
<html>
<head>
	<?php echo $this->Html->charset(); ?>
    <!--[if IE]>
<meta http-equiv="Cache-Control" content="no-cache" />
<![endif]-->
	<title>
		<?php __('ALWF Profil Administrator Tools'); ?>
		<?php echo $title_for_layout; ?>
	</title>
	<?php
        $theme='N';
		echo $this->Html->meta('icon');

		switch ($theme){
                    case 'N':
                        echo $this->Html->css('custom');
                        break;
                    case 'B':
                        echo $this->Html->css('customBlack');
                        break;
                    case '1':
                        echo $this->Html->css('themeFF');
                        break;
                    default:
                        echo $this->Html->css('custom');
                        break;
                }
                    
        
         ?>
<!--[if IE]>

<?php  echo $this->Html->css('customIE'); ?>
<![endif]-->
        <?php
                echo $this->Html->script('jquery.js');
                
               echo $this->Html->script('navigation.js');
               echo $this->Html->script('gestionFormulaire.js');

		echo $scripts_for_layout;
	?>
</head>
<body>
    <div class="loader">Loading...</div>
            <div class="myalerts"></div>
             <div class="alerts"><?php
                            echo $this->Session->flash();
                            echo $this->Session->flash('auth');
                        ?></div>
        <?php
       
        ?>
	<div id="container">
		<div id="header">
                    <div id="headInfo">
                        <div id="headLogo">
                             <?php
                             if ($theme=='B'){
                                echo $this->Html->link(
					$this->Html->image('BLACK/logoAlwIE.png', array('alt'=> __('Air Liquide Welding Profil Administration Tool', true), 'border' => '0')),
					array('controller'=>'pages','action'=>'home'),
					array('target' => '_blank', 'escape' => false)
				);
                             }else{
                                echo $this->Html->link(
					$this->Html->image('logoAlwIE.png', array('alt'=> __('Air Liquide Welding Profil Administration Tool', true), 'border' => '0')),
					array('controller'=>'pages','action'=>'home'),
					array('target' => '_blank', 'escape' => false)
				);
                             }
                            ?>
                        </div>
                        <div id="headTitle">PROFIL ADMINISTRATION TOOL</div>
                        <div id="headuser">
                            <div style="clear:both">
                               <?php if ($this->Session->read('Auth.User')) {?>
                                <div class="uInfo">
                                   <?php echo $this->Session->read('Auth.User.surname')." ".$this->Session->read('Auth.User.name'); ?><br/>
                                   <?php echo $this->Session->read('Auth.User.group_name'); ?>
                                    <?php //debug($this->Session->read('Auth'));?>
                                </div>
                                <div class="logout">
                                    <?php echo $this->Html->link('Log Out',array("controller"=>"users",'action'=>'logout')) ?>
                                </div>
                                <?php }else{ ?>
                                <div class="uInfo"></div>
                                <div class="logout">
                                    <?php echo $this->Html->link('Log In',array("controller"=>"users",'action'=>'login')) ?>
                                </div>
                                <?php } ?>
                            </div>
                        </div>
                    </div>
                    <div id="menu">
                        <ul>
                            <li><?php echo $this->Html->link('My Demands',array("controller"=>"demandforms",'action'=>'listforms'),array('class'=>'nav')) ?></li>
                            <li class="separator"></li>
                            <li><?php echo $this->Html->link('New Demand form',array("controller"=>"demandforms",'action'=>'prmdform'),array('class'=>'nav')) ?></li>
                            <li class="separator"></li>
                            <li><?php //echo $this->Html->link('Jobs and Workflows',array("controller"=>"Jobprofiles",'action'=>'index'),array('class'=>'nav')) ?></li>
                            <li class="separator"></li>
                            <li><?php //echo $this->Html->link('KPIs and Statistics',array("controller"=>"Kpis",'action'=>'index'),array('class'=>'nav')) ?></li>

                        </ul>
                    </div>

		</div>
           
		<div id="content">
                   
                   
		

			<?php echo $content_for_layout; ?>

		</div>
            
            
		<div id="footer">
                    <div class="footinfo"> © Copyright AIR LIQUIDE WELDING 2011</div>
			<?php
                                if($theme=='B'){
                                   echo $this->Html->link(
					$this->Html->image('BLACK/logo_air_liquide_base.gif', array('alt'=> __('Air Liquide Welding Profil Administration Tool', true), 'border' => '0')),
					'http://www.airliquidewelding.com/',
					array('target' => '_blank', 'escape' => false)
				);
                                }else{
                                echo $this->Html->link(
					$this->Html->image('logo_air_liquide_base.gif', array('alt'=> __('Air Liquide Welding Profil Administration Tool', true), 'border' => '0')),
					'http://www.airliquidewelding.com/',
					array('target' => '_blank', 'escape' => false)
				);
                                }
			?>
		</div>
	</div>
	<?php // echo $this->element('sql_dump');
       
        ?>
</body>
<head>
        <!--[if IE]>
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="PRAGMA" content="no-cache" />
<![endif]-->
</head>
</html>